package com.linh.trade.algo;

import java.util.List;

import com.linh.trade.data.Point;

public class WindowMoverBySize implements WindowMover {

	private int window;

	public WindowMoverBySize(int window) {
		super();
		this.window = window;
	}

	public void move(List<Point> pointsInWindow, long latestTime) {
		while (pointsInWindow.size() > window) {
			 
			pointsInWindow.remove(0);
		}

	}
}
